<?php

namespace app\enterprise\model;

use app\model\TimeModel;

/**
 * 培训类型
 */
class TrainType extends TimeModel
{

    protected $table = 'sj_train_type';


    public static function getList($where)
    {
        $list = (new self)->where('status', '>', '0')->where($where)
            ->order(['pid' => 'desc', 'create_time' => 'asc'])
            ->select()->toArray();
        return $list;
    }


}